package com.example.fw;

import java.io.IOException;

public class ProcessHelper extends HelperBase {

    private Process process;

    ProcessHelper(ApplicationManager manager){
        super(manager);
    }

    public void startAppUnderTest() throws IOException {
        String command = appManager.getProperty("app.path");
        process = Runtime.getRuntime().exec(command);
    }

    public void stopAppUnderTest(){
        process.destroy();
    }
}
